﻿using System;
using System.Collections.Generic;
using System.Web;

using BusinessLogic.ClassFactory;
using BusinessLogic.BusinessRules;
using Model;

namespace Util.TemplateInfo
{
    public class TemplateInfo
    {
        public  static  string GetWebsiteName(int intWebSiteId)
        {
            try
            {
                using (WebSiteFactory objFactory=new WebSiteFactory())
                {
                    WebSite objWebSite = objFactory.Creator(intWebSiteId);
                    if (objWebSite!=null)
                    {
                        return objWebSite.DataItem.chvName;
                    }
                    else
                    {
                        return "没有记录";
                    }
                }
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}